<%@ page language="java"  pageEncoding="UTF-8"%>
<jsp:include page="../inc.jsp"></jsp:include>
<jsp:include page="../kindeditorInc.jsp"></jsp:include>
<jsp:include page="../uploadifyInc.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jsp/user/list.js"></script>

<div class="easyui-layout" data-options="fit:true,border:false">
	<div class="tableSearch datagrid-toolbar" data-options="region:'north',border:false" style="width:100%;height:60px;overflow: hidden;font-size: 12px;">
		<form id="selectForm">
			<table  style="width: 100%; font-size: 12px">
				<tr>
					<th>注册时间</th>
					<td>
						<input id="createDate1" name="createDate1" style="width: 100px;"/>至
						<input id="createDate2" name="createDate2" style="width: 100px;"/>
					</td>
					<th>邮箱</th><td><input class="input_border" name="email" id="selectEmail"/></td>
					<th>状态</th><td><input class="input_border" name="status" id="selectStatus"/></td>
					<th></th><td></td>
				</tr>
				<tr>
					<th>用户名</th><td><input class="input_border" name="username" id="selectUsername"/></td>
					<th>昵称</th><td><input class="input_border" name="nickname" id="selectNickname"/></td>
					<th>手机号</th><td><input class="input_border" name="phone" id="selectPhone"/></td>
					<td colspan="2" align="center"><a href="javascript:void(0)" class="easyui-linkbutton" onclick="search_datas()">查询</a>
						<a href="javascript:void(0)" class="easyui-linkbutton" onclick="reset_datas()">清空</a></td>
				</tr>
			</table>
		</form>
	</div>
	<div data-options="region:'center',border:false">
		<table id="_datasDatagrid"></table>	
	</div>
</div>

<!-- 右键菜单 -->
<div>
	<div id="datagridContextMenu" class="easyui-menu" style="width:200px">
		<div data-options="iconCls:'icon-add'" onclick="addRow()">增加</div>
		<div data-options="iconCls:'icon-remove'" onclick="deleteRow()">批量删除</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateRow()">修改</div>
		<div data-options="iconCls:'icon-save'" onclick="saveRow()">保存</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-cancel'" onclick="stopUse()">停用</div>
		<div data-options="iconCls:'icon-accept'" onclick="startUse()">启用</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-folder'" onclick="lookStore()">查看收藏</div>
		<div data-options="iconCls:'icon-group'" onclick="visitorRowHandler()">来访者</div>
		<div data-options="iconCls:'icon-group_go'" onclick="usergroupRowHandler()">查看组</div>
		<div data-options="iconCls:'icon-user_green'" onclick="userroleRowHandler()">查看角色</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-redo'" onclick="rejectRow()">撤销</div>
		<div data-options="iconCls:'icon-reload'" onclick="_datasDatagrid.datagrid('reload');">刷新</div>
	</div>
</div>

<!-- 更新用户信息对话框dialog -->
<div id="dialogAddUser" style="width:800px;height:500px;display:none; padding:10px;overflow-x:hidden;overflow-y:scroll">
	<form id="formAddUser" method="post" style="width:100%; height:100%;">
		<input type="hidden" name="icon" id="logosrc" value="${pageContext.request.contextPath}/resources/css/images/logo_px.png"/>
		<input type="hidden" id="sessionID" value='${pageContext.session.id}'/>
		<input type="hidden" id="id" name="id"/>
		<input type="hidden" id="ttcid" name="ttcid"/>
		<input type="hidden" id="password" name="password"/>
		<table>
		   <tr>
				<th>头像</th>
				<td colspan="3">
				<img id="logoPic" src="${pageContext.request.contextPath}/resources/css/images/logo_px.png" style="width: 89px;margin-left: 18px;"/>
				<input type="file" id="icon" name="file"/>
				</td>
		   </tr>
			<tr>
				<th>昵称</th>
				<td><input type="text" id="nicknames" name="nickname" style="width:100px;"/></td>
				 <th>用户名</th>
				<td><input type="text" id="usernames" name="username" style="width: 100px;"/></td> 
				
			</tr>
			<tr>
			    <th>邮箱</th>
				<td><input type="text" id="emails" name="email" style="width: 100px;" /></td>
				<th>电话</th>
				<td><input type="text" id="phone" name="phone" style="width: 100px;"></td>
			</tr>
			<tr>
			 <th>推荐学校</th>
				<td><input type="text" id="recommendtrain" name="recommendtrain" style="width: 200px;" /></td>
			<!-- <th>用户密码</th>
			<td><input type="text" id="password" name="password" style="width: 100px;"></td> -->
			</tr>
			<!-- <tr>
			 <th>我的组</th>
				<td><input type="text" id="groupIds" name="groupIds" style="width: 100px;" hidden="hidden"  />
				<input type="text" id="groupNames" name="groupNames" style="width: 100px;" />
				</td> 
			</tr>
			<tr>
			 <th>我的角色</th>
				<td><input type="text" id="roleIds" name="roleIds" style="width: 100px;"hidden="hidden" /> <input type="text" id="roleNames" name="roleNames" style="width: 100px;" /></td> 
			</tr> -->
			<tr>
				<th>教育理念</th>
				<td colspan="3"><textarea id="eduideas" name="eduideas" cols="60" rows="5"></textarea></td>
			</tr>
		</table>
	</form>
</div>


<!-- 修改密码dialog -->
<div id="dialogUpdatePassword" style="width:400px;height:200px;padding:10px;display:none;overflow:hidden;">
	<form id="formUpdatePassword" method="post" style="width: 100%; height: 100%;">
		<input type="hidden" name="id" id="ids" value="${id}"/>
		<table class="dialogTable">
			<tr>
				<th style="text-align: right;">新密码：</th>
				<td><input type="text" id="passwordNew" name="password" style="width: 200px;"></td>
			</tr>
		</table>
	</form>
</div>
</body>  
</html>